TextGrid : Features of the XML Editor

The XML Editor in general offers some features that should make working with XML documents easier.

Show Validation Errors

Clicking “Show Validation Errors”  under the item “XML” in the menu bar opens a new view in which error messages are listed with information about invalid XML and offset.

Associate a Schema

If an XML document is opened, you can associate a schema to it. After clicking “Associate a Schema”  under the item “XML” in the menu bar the “Select a new schema” dialog opens.


 

Associate a Schema

 


Above a list of schemas there is a display of summary information if the document is associated to any schema and, if it is, to which. You can choose one of the schemata listed with some information about the schema name, the corresponding Project, its contributor and its creation date. Click a schema to select it and “OK” to associate it to the XML document.

If no schema is associated, the radio button “no explicit schema association” on the left below the list is marked. A document’s schema association will only be made persistent when the document or its metadata is saved.

Associate a CSS Stylesheet

 A Cascading Style Sheet can be added to an XML document when it is opened and “Associate a CSS Stylesheet” is selected from the item “XML” in the menu bar. The CSS will be used for displaying the XML document in the WYSIWYM View. You can select a CSS from the list by clicking on it. By default, a TEI stylesheet build into the editor is used. To reactivate this option mark the radio button below the list of CSS models.

Associate an Adaptor

 An adaptor can be associated to translate the given document to the TextGrid Baseline Encoding. To open it, please select “Associate an Adaptor...”  under the item “XML” in the menu bar when a document is opened or choose this item in the Navigator’s context menu of the preselected Object. A new dialog box opens.

In the upper list of the dialog the selected Object is/the selected Objects are presented with information about "Title", "Project", "Contributor" and "Creation Date". You can tick off the box under this list to make the assignment persistent when clicking “OK”.

In the lower list you can select the adaptor by clicking on it. Here you can also get additional information about the adaptors. To annul your selection, you can mark the radio button “Associate with no adaptor” under this list.

XML Editor Debugging

The debugging is intended to find and reduce the number of problems. The XML Editor Debugging works with the WYSIWYM View. Via “XML Editor Debugging” in “XML” in the menu bar you have the possibility to reload the WYSIWYM View. By selecting “Debug XML Document” you can save the WYSIWYM Debug Output. You can also open the WYSIWYM Debugging View by clicking “Layout Debugging”.